/*
 * @Date: 2022-04-27 10:06:51
 * @LastEditors: wuyuxin
 * @LastEditTime: 2022-04-27 10:07:26
 * @FilePath: \Vue3-ts-cms\src\hooks\userPageSearchHook.ts
 * @description: 文件描述
 */
import { ref } from 'vue'
import PageContent from '@/components/page-content'

export function userPageSearchHook() {
  const pageContentRef = ref<InstanceType<typeof PageContent>>()
  const handleSearch = (value: any) => {
    pageContentRef?.value?.getDataList(value)
  }
  const handleResetClick = () => {
    pageContentRef?.value?.getDataList()
  }
  return [pageContentRef, handleSearch, handleResetClick]
}
